﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Program
    {
        static void Main(string[] args)
        {
            UserInfo user = new UserInfo();

            Console.WriteLine("请输入用户名：");
            user.UserName = Console.ReadLine();

            Console.WriteLine("请输入用户年龄：");
            user.UserAge = int.Parse(Console.ReadLine());
            
            Console.WriteLine("请输入用户性别：");
            user.UserSex = char.Parse(Console.ReadLine());

            Console.WriteLine("请输入出版社名字");
            user.PreName = Console.ReadLine();

            Console.WriteLine("请输入出版社地址");
            user.PreAddress = Console.ReadLine();

            Console.WriteLine("请输入出版社负责人");
            user.PreCharge = Console.ReadLine();

            Console.WriteLine("请输入图书ISBN码");
            user.BookISBN = int.Parse(Console.ReadLine());

            Console.WriteLine("请输入书名");
            user.BookName = Console.ReadLine();

            Console.WriteLine("请输入图书价格");
            user.BookMoney = int.Parse(Console.ReadLine());

            user.SayHi();
            user.SayPre();
            user.SayBook();
        }
    }
}
